<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>仿百度文库在线阅读2.1</title>
<base href="<%=basePath %>">
<script type="text/javascript" src="FlexPaper2.1/js/flexpaper_flash_debug.js"></script>
<script type="text/javascript" src="FlexPaper2.1/js/jquery.js"></script>
</head>

<body>
<div style="position:absolute;left:50px;top:10px;">  
	<div id="documentViewer" class="flexpaper_viewer" style="width:770px;height:500px"></div>
 	<script type="text/javascript">
 	var fp = new FlexPaperViewer(
		'FlexPaper2.1/FlexPaperViewer',
		'documentViewer', {
			config : {
				SwfFile : '<%=request.getAttribute("finalFilePath") %>',
				Scale : 0.6,
				ZoomTransition : 'easeOut',
				ZoomTime : 0.5,
				ZoomInterval : 0.2,
				FitPageOnLoad : true,
				FitWidthOnLoad : true,
				FullScreenAsMaxWindow : false,
				ProgressiveLoading : false, // 2.1有个Bug,当ProgressiveLoading为true,打开比例为-3%,无法正常显示文件
				MinZoomSize : 0.2,
				MaxZoomSize : 5,
				SearchMatchAll : false,
				InitViewMode : 'SinglePage',
				ViewModeToolsVisible : true,
				ZoomToolsVisible : true,
				NavToolsVisible : true,
				CursorToolsVisible : true,
				SearchToolsVisible : true,
				localeChain : 'zh_CN'
			}
		});
	</script>
</div>
</body>
</html>